# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.1046.15.72 -> 1.1046.15.73 # mm/memory.c 1.124 -> 1.125 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 03/06/12 shemminger@osdl.org 1.1046.252.101 # [TUN]: tun using alloc_netdev. # -------------------------------------------- # 03/06/12 davem@nuts.ninka.net 1.1046.252.102 # [LLC]: Fix typing error in procfs code. # -------------------------------------------- # 03/06/12 shemminger@osdl.org 1.1046.252.103 # [ACENIC]: Convert to alloc_etherdev. # -------------------------------------------- # 03/06/12 anton@samba.org 1.1046.282.1 # ppc64: K&R to ANSI style conversions from Steven Cole # -------------------------------------------- # 03/06/12 paulus@samba.org 1.1046.1.260 # Merge samba.org:/stuff/paulus/kernel/linux-2.5 # into samba.org:/stuff/paulus/kernel/for-linus-ppc # -------------------------------------------- # 03/06/12 davej@tetrachloride.(none) 1.1046.229.11 # Cset exclude: davej@codemonkey.org.uk|ChangeSet|20030611121150|30244 # -------------------------------------------- # 03/06/12 davej@codemonkey.org.uk 1.1046.229.12 # [CPUFREQ] Merge Jeremy's Centrino speedstep driver. # -------------------------------------------- # 03/06/12 davej@codemonkey.org.uk 1.1046.229.13 # [CPUFREQ] Move old speedstep driver to speedstep-ich # -------------------------------------------- # 03/06/12 ink@jurassic.park.msu.ru 1.1046.283.1 # [ALPHA] Fix Jensen PCI domains warning # # Alternatively, we can set CONFIG_PCI_DOMAINS=y unconditionally to # avoid ifdefs - jensen has dummy PCI infrastructure anyway. # # Ivan. # -------------------------------------------- # 03/06/12 torvalds@home.transmeta.com 1.1046.284.1 # Fix rcu list poisoning - since another CPU may be traversing the list # as we delete the entry, we can only poison the back pointer, not the # traversal pointer (rcu traversal only ever walks forward). # # Make __d_drop() take this into account. # -------------------------------------------- # 03/06/12 torvalds@home.transmeta.com 1.1046.284.2 # Make d_move() be able to gracefully handle the case of the dentry # already being unhashed on entry. # -------------------------------------------- # 03/06/12 rth@kanga.twiddle.net 1.1046.283.2 # [ALPHA] Update Jensen call to ide_register_hw. # -------------------------------------------- # 03/06/12 kai@tp1.ruhr-uni-bochum.de 1.1046.284.3 # Merge tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5 # into tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.make # -------------------------------------------- # 03/06/12 davej@tetrachloride.(none) 1.1046.285.1 # Merge tetrachloride.(none):/mnt/raid/src/kernel/2.5/bk-linus # into tetrachloride.(none):/mnt/raid/src/kernel/2.5/cpufreq # -------------------------------------------- # 03/06/12 davem@nuts.ninka.net 1.1046.286.1 # Merge nuts.ninka.net:/home/davem/src/BK/network-2.5 # into nuts.ninka.net:/home/davem/src/BK/net-2.5 # -------------------------------------------- # 03/06/12 davidm@tiger.hpl.hp.com 1.1046.77.80 # patch.c: # ia64: don't forget to establish coherence after vtop patching # -------------------------------------------- # 03/06/13 davej@codemonkey.org.uk 1.1046.287.1 # [AGPGART] Some Intel chipsets were using the wrong masks. # Spotted by Christian Zander. # -------------------------------------------- # 03/06/12 agrover@groveronline.com 1.1046.288.1 # Merge groveronline.com:/root/bk/linux-2.5 # into groveronline.com:/root/bk/linux-acpi # -------------------------------------------- # 03/06/12 davidm@tiger.hpl.hp.com 1.1046.77.81 # ia64: Minor cleanups: export more symbols, remove uncessary stop bits. # -------------------------------------------- # 03/06/13 anton@samba.org 1.1046.282.2 # ppc64: copy_tofrom_user fix from Paul Mackerras # -------------------------------------------- # 03/06/13 anton@samba.org 1.1046.289.1 # Merge samba.org:/scratch/anton/linux-2.5 # into samba.org:/scratch/anton/tmp3 # -------------------------------------------- # 03/06/13 anton@samba.org 1.1046.290.1 # Merge bk://ppc.bkbits.net/for-linus-ppc64 # into samba.org:/home/anton/ppc64/for-linus-ppc64 # -------------------------------------------- # 03/06/12 davidm@tiger.hpl.hp.com 1.1046.15.73 # Allow read accesses to the entire FIXMAP range. This lets gdb see the # instructions in the gate page (there is no security issue, because the # gate page only contains instructions or non-security-sensitive data such # as the ELF headers, etc.). # -------------------------------------------- # diff -Nru a/mm/memory.c b/mm/memory.c --- a/mm/memory.c Mon Sep 22 13:00:48 2003 +++ b/mm/memory.c Mon Sep 22 13:00:48 2003 @@ -714,8 +714,7 @@ if (!pmd) return i ? : -EFAULT; pte = pte_offset_kernel(pmd, pg); - if (!pte || !pte_present(*pte) || !pte_user(*pte) || - !(write ? pte_write(*pte) : pte_read(*pte))) + if (!pte || !pte_present(*pte) || write) return i ? : -EFAULT; if (pages) { pages[i] = pte_page(*pte);